JSONStringify c#

67

JSONStringify c# -

var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person);

JSONStringify c# -

JsonConvert.SerializeObject(ob)

JSONStringify c# -

using System.Web.Script.Serialization;

var json = new JavaScriptSerializer().Serialize(obj);

Comments

Submit
0 Comments